// 全局业务多语言文档（business）
// - 将全局通用业务的文案集中管理，便于维护与查找
// - 当前收录：profile（个人账户）、organization（组织信息）
// - 其他全局模块（如 home/alert 等）后续可继续补充到本文件

export const businessMessages = {
  en: {
    // 概览顶部区域（图表 + 统计卡片）
    overview: {
      statusChart: {
        title: "System status",
        seriesName: "System Status"
      },
      statistics: {
        title: "Systems Statistics",
        latest: "Latest"
      },
      cards: {
        solar: {
          title: "Solar",
          totalSolarGeneration: "Total Solar Generation"
        },
        home: {
          title: "Home",
          totalConsumption: "Total Consumption"
        },
        grid: {
          title: "Grid",
          exportToGrid: "Export to grid",
          importFromGrid: "Import from grid"
        },
        battery: {
          title: "Battery",
          chargeToBattery: "Charge to battery",
          dischargeFromBattery: "Discharge from battery"
        }
      }
    },
    // 系统列表（System List）
    systemList: {
      columns: {
        id: "System ID",
        status: "Status",
        name: "System Name",
        region: "Country/Region",
        address: "Address",
        operation: "Operation"
      },
      actions: {
        details: "Details"
      },
      // pagination: {
      //   total: "Total",
      //   prev: "Prev",
      //   next: "Next",
      //   jumper: "Go to"
      // },
      status: {
        normal: "Normal",
        faulty: "Faulty",
        offline: "Offline",
        standby: "Standby",
        unknown: "Unknown"
      },
      common: {
        na: "-"
      }
    },

    // 告警（Alert）- 全局业务汇总页
    alerts: {
      tabs: {
        all: "All",
        active: "Active",
        historical: "Historical"
      },
      placeholder: {
        alertCodeSn: "Alert code/SN",
        selectDate: "Select date",
        allProduct: "All product"
      },
      buttons: {
        reset: "Reset",
        search: "Search",
        details: "Details",
        ok: "OK",
        cancel: "Cancel"
      },
      columns: {
        alertCode: "Alert Code",
        systemId: "System ID",
        systemName: "System Name",
        alertName: "Alert Name",
        deviceName: "Device Name",
        sn: "SN",
        product: "Product",
        faultyModule: "Faulty Module",
        occuranceTime: "Occurrence Time",
        recoveryTime: "Recover Time",
        operate: "Operate"
      },
      dialog: {
        title: "Alert Details",
        labels: {
          alertId: "Alert ID",
          alertName: "Alert name",
          systemId: "System ID",
          systemName: "System name",
          deviceName: "Device name",
          sn: "SN",
          faultyModule: "Faulty module",
          product: "Product",
          occuranceTime: "Occurance time",
          recoveryTime: "Recovery time",
          possibleReason: "Possible Reason",
          suggestion: "Suggestion"
        },
        dash: "—"
      }
    },

    // 个人账户（Profile）
    profile: {
      title: {
        personalInfo: "Personal Info",
        securitySetting: "Security Setting",
        changePassword: "Change Password",
        editUsername: "Change Username"
      },
      label: {
        username: "User name:",
        roleName: "Role name:",
        email: "User E-mail:",
        phoneNumber: "User phone number:",
        passwordLastReset: "Password last reset:",
        currentPassword: "Current Password",
        newPassword: "New Password",
        confirmPassword: "Confirm Password",
        usernameOnly: "Username"
      },
      placeholder: {
        enterCurrentPassword: "Please enter current password",
        enterNewPassword: "Please enter new password",
        enterPasswordAgain: "Please enter password again",
        enterUsername: "Please enter username"
      },
      hint: {
        passwordFormat:
          "Please enter 8–32 characters, including at least one letter and one number, with no spaces"
      },
      common: {
        cancel: "Cancel",
        confirm: "Confirm"
      },
      validate: {
        enterConfirmPassword: "Please enter confirm password",
        confirmNotMatch: "Two inputs don't match!",
        enterPassword: "Please enter password",
        passwordAtLeast8: "Password must be at least 8 characters",
        passwordOneLetter: "Password must include at least one letter",
        passwordOneNumber: "Password must include at least one number",
        passwordNoSpaces: "Password must not have spaces",
        enterUsername: "Please enter username",
        usernameLength: "Length should be at least 3 characters and less than 10 characters"
      },
      message: {
        passwordChanged: "Password changed successfully!",
        usernameUpdated: "Username updated successfully!",
        fixFormErrors: "Please fix the form errors"
      },
      action: {
        changePassword: "Change password"
      }
    },

    // 组织信息（Organization Info）
    organization: {
      title: {
        organizationInfo: "Organization Info",
        setting: "Setting"
      },
      // 为避免其他模块使用同一命名空间时找不到文案，这里补充常用操作文案
      modifyOrganization: "Modify",
      label: {
        organizationName: "Organization name:",
        organizationType: "Organization type:",
        countryRegion: "Country/Region:",
        organizationAddress: "Organization address:",
        organizationEmail: "Organization E-mail:"
      },
      dialog: {
        organizationName: "Organization name :",
        countryRegion: "Country/Region :",
        organizationAddress: "Organization address :"
      },
      placeholder: {
        pleaseEnter: "Please enter"
      },
      common: {
        cancel: "Cancel",
        ok: "OK"
      },
      validate: {
        enterOrganizationName: "Please enter organization name",
        nameLength: "Length should be 8 to 100 characters",
        selectCountry: "Please select country/region",
        enterOrganizationAddress: "Please enter organization address"
      },
      message: {
        updated: "Organization info updated successfully!",
        fixFormErrors: "Please fix the form errors"
      }
    }
  },

  // 其他语言先留空对象作为占位，后续可逐步补全
  de: {},
  fr: {},
  nl: {},
  sv: {}
};
